package com.juneng.mapper;

import com.juneng.entity.Comment;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.juneng.dto.CommentQueryDto;
import com.juneng.vo.CommentVo;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 社区评论表 Mapper 接口
 *
 * @author zds
 * @since 2021-07-28
 */
public interface CommentMapper extends BaseMapper<Comment> {
        IPage<CommentVo> page(IPage page, @Param("dto")CommentQueryDto dto);

        List<CommentVo> getCommentList();

        CommentVo getComment(@Param("id") Long id);
}
